﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="mars">
    <html:form action="/answertech" method="post" onsubmit="return validate(this);">
    <input type="hidden" name="action" value="delete"/>
    <html:hidden property="id" name="answer"/>
    <tr>
        <td colspan="2"><b>确实要删除此回复吗？<br></b></td>
    </tr>
    <tr class="even">
        <td width="100" align="right">所属帖子:&nbsp;</td>
        <td>
        	<c:if test="${answer.mrIaskQuestion.titleAttribute != null}">
        		<span style="<c:out value="${answer.mrIaskQuestion.titleAttribute}" />">
          </c:if>
        	<c:out value="${answer.mrIaskQuestion.title}"/>
        	<c:if test="${answer.mrIaskQuestion.titleAttribute != null}">
        		</span>
          </c:if>
        </td>
    </tr>
    <tr>
        <td align="right">回复内容:&nbsp;</td>
        <td>
            <%pageContext.setAttribute("vEnter","\n");%>
                <div>
                <c:set var="acontent" value="${fn:replace(answer.content,vEnter,'<br/>')}"/>
                <c:out escapeXml="false" value="${fn:replace(acontent,'<image=','<img border=0 src=')}"/>
                </div>
        </td>
    </tr>
    <tr class="even">
        <td align="right">验证码:&nbsp;</td>
        <td><input type="text" name="vc" size="4"/>*<img src="<%=request.getContextPath()%>/vcimg" width="40" height="20" border="0" align="bottom"/></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td><input type="submit" value="确认删除"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="back" value="返 回" onclick="javascript:history.back(1);"/></td>
    </tr>
    </html:form>
</table>
<script type="text/javascript">
    ///document.answer.vc.focus();
    function validate(pForm)
    {
        var vc = pForm.vc.value;
        if(vc == "")
        {
            alert("请输入[验证码]");
            pForm.vc.focus();
            return false;
        }
        return true;
    }
</script>